package dyyx;

import java.net.URL;
import java.util.Enumeration;

public class ClassInfo {
	
	public static void main(String[] args) throws Exception {
		System.out.println("ClassInfo");
		
		// commons-logging-1.2.jar jcl-over-slf4j-1.7.22.jar
		
		showClassInfo(org.apache.commons.logging.LogFactory.class);
		// logback-classic-1.2.0.jar
		showClassInfo(org.slf4j.impl.StaticLoggerBinder.class);

		

	}
	
	
	private static void showClassInfo(Class cls)throws Exception{
		
		System.out.println("class="+cls);
		Enumeration<URL> urls = CommUtil.getResourceUrls(cls);
		if(urls==null){
			return;
		}
		while(urls.hasMoreElements()){
			System.out.println(urls.nextElement());
		}

		System.out.println("\n\n");

	}
}
